package com.qf.lanzhou.shop.api.service.impl;

import com.qf.lanzhou.shop.api.dao.UserMapper;
import com.qf.lanzhou.shop.api.service.UserService;
import com.qf.lanzhou.shop.pojo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Nerly
 * @Date 2021/1/13 10:07
 * @JDK 1.8
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectById(User user) {
        User result = userMapper.selectById(user);
        return result;
    }

    @Override
    public int updateUser(User user) {
        int result = userMapper.updateUser(user);
        return result;
    }
}
